#!/usr/bin/python2
# -*- coding: utf8 -*-
from PyQt4 import QtCore, QtGui, Qt
import sys

class Job(QtCore.QObject):
    _name = "noname"
    _description = ""
    _startTime = 0
    _longTime = 0
    _id = -1

    def __init__(self, id, name, description, startTime, longTime, parent=None):
        QtCore.QObject.__init__(self, parent)
        self._id = id
        self._name = name
        self._description = description
        self._startTime = startTime
        self._longTime = longTime

    @QtCore.pyqtProperty(QtCore.QString)
    def name(self):
        return self._name

    @QtCore.pyqtProperty(int)
    def startTime(self):
        return self._startTime

    @QtCore.pyqtProperty(int)
    def longTime(self):
        return self._longTime

    @QtCore.pyqtProperty(int)
    def id(self):
        return self._id

    @QtCore.pyqtProperty(QtCore.QString)
    def description(self):
        return self._description

